:root {
    --bg-dark: #120822;
    --card-bg: #1d1033;
    --accent-gold: #f3c65d;
    --text-purple: #cbb9ff;
    --border-color: #362555;
    --item-size: 80px;
    --item-gap: 16px;
}

/* Container setup */
.game-container {
    position: relative;
    background: radial-gradient(227.73% 291.91% at 50% 0%, rgba(3, 16, 22, 0.75) 18.5%, rgb(125 0 255 / 75%) 56%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 528px;
    height: max-content;
    padding: 40px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0px 0px 20px auto;
}

/* The Selection Arrow & Header */
.game-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.arrow-down {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #fff;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
    z-index: 10;
}

.header-line {
    position: absolute;
    top: 5px;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a3375, transparent);
}

/* The Roulette Window */
.roulette-wrapper {
    position: relative;
    width: 100%;
    height: 110px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    /* This creates the fade-out effect on the sides */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.roulette-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    will-change: transform;
    /* ADD THESE TWO LINES */
    width: max-content; 
    pointer-events: none; 
}

/* FORCE the ribbon to accept transforms */
#rouletteRibbon {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    transform-style: preserve-3d !important;
    backface-visibility: hidden !important;
    /* Ensure no other L2 template CSS turns off transforms */
    transform: translateX(0px) !important; 
}

/* Force items to stay the right size and visible */
#rouletteRibbon .item {
    display: flex !important;
    flex: 0 0 80px !important;
    width: 80px !important;
    height: 80px !important;
    margin-right: 16px !important;
    visibility: visible !important;
    opacity: 1 !important; /* Force opacity to 1 for now to see if they appear */
}

#rouletteRibbon .item img {
    display: block !important;
    width: 54px !important;
    height: 54px !important;
}
.item {
    flex: 0 0 var(--item-size);
    height: var(--item-size);
    margin-right: var(--item-gap);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3d2a5e;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* opacity: 0.4; */
    /* filter: grayscale(0.8); */
}

.item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

/* Active/Winner State */
.item.active {
    opacity: 1;
    filter: grayscale(0);
    border-color: var(--accent-gold);
    background: rgba(243, 198, 93, 0.1);
    box-shadow: 0 0 20px rgba(243, 198, 93, 0.3);
    transform: scale(1.05);
}

/* Prize Text */
.prize-display {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    min-height: 1.5em;
    margin: 20px 0;
    font-weight: 400;
}

/* Footer Giveaway Box */
.game-footer {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gift-icon { font-size: 24px; }

.footer-text {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-purple);
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Action Button */
.spin-button {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 25px auto 0;
    padding: 16px;
    background: var(--accent-gold);
    border: none;
    border-radius: 16px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    color: #000;
    transition: transform 0.1s, opacity 0.2s;
}

.spin-button:hover { opacity: 0.9; }
.spin-button:active { transform: scale(0.96); }
.spin-button:disabled { background: #4a3d24; color: #777; cursor: not-allowed; }


/* SCRYDE ORANGE BUTTON */
.qs-btn-orange-promo {
	display: block;
    width: 50%;
    /* background: linear-gradient(180deg, #ff9b44 0%, #d46c1a 100%); */
    background: radial-gradient(128% 100% at 50% 0px, rgb(255, 229, 70) 2.6%, rgb(152, 74, 8) 57.29%, rgb(255, 180, 1) 100%);
    border: none;
    padding: 18px;
    color: #fff;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 108, 26, 0.4);
    transition: 0.3s;
    text-transform: uppercase;
	margin: 20px auto auto;
}

.qs-btn-orange-promo:hover { transform: translateY(-2px); filter: brightness(1.1); }


/* SEO: Hide heading while remaining indexable */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
